home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
win_u_z
/
winlogo.zip
/
WINLOGO.BAT
< prev
Wrap
DOS Batch File
|
1992-07-27
|
10KB
|
258 lines
@echo off
goto start
WINLOGO.BAT
Mon 07-27-1992 13:47:38
-------------------------- Start Text --------------------------
PURPOSE:
Windows 3.1 is a MUCH better operating environment than Windows
3.0. Microsoft's Windows 3.1 start up logo is quite good, but many
of us want our very own start up logo for home, office, and network
use. This text and batch file -- WINLOGO.BAT -- will install and
instruct you on how to make your very own start up logo for Windows
3.1.
TECHNIQUE:
This text file is written in plain ASCII so that it can easily be
"read" by a Windows 3.1 word processing program such as "Notepad"
Or, read from the MS-DOS command line using the command:
more < WINLOGO.BAT
Run this batch file from the MS-DOS command line (not inside of
Windows).
WINLOGO.BAT should:
1. Create a new WIN.COM file called NEWWIN.COM, then
2. Start Windows 3.1 with a NEW start up logo.
RUN THIS PROGRAM FROM A: DRIVE:
Before reading further, please stop be sure at least the two (2)
files in this set:
1. WINLOGO.BAT
2 VGALOGO.RLE
are copied to a diskette on the A: Drive.
All set? This program assumes that you have a VGA color monitor.
If you have another type of monitor, the names of the *.LGO and
*.RLE files in your directories may be different but will have the
same extensions (*.LGO *.RLE). You will need to modify this batch
file program before you run it. The enclosed file VGALOGO.RLE may
not work.
OK, OK, RUN THE BATCH FILE:
For those of you who want to "try first read later," you can safely
run this batch program now and see if it works. If it doesn't
work, it will NOT change any files on your hard drive. If it works,
a new file named NEWWIN.COM will be copied to your C:\WINDOWS
directory and Windows will load with the familiar logo but with a
-- RED -- background.
WINLOGO.BAT PROGRAMMING SECRETS:
WINLOGO.BAT uses copies of the following files:
1. WIN.CNF <-- The Windows 3.1 configuration file that
defines your system's setup. It is initiated
when you complete your Windows 3.1 SETUP.
Located in the C:\WINDOWS\SYSTEM subdirectory
2. VGALOGO.LGO <-- The marker file that sets the screen
resolution for the logo file. Located in the
C:\WINDOWS\SYSTEM subdirectory
3. VGALOGO.RLE <-- The logo file that is furnished with Windows
3.1; this is the one we change. Located in
the C:\WINDOWS\SYSTEM subdirectory
The command that produces the new *.COM file that loads Windows 3.1
is very simple and uses the MS-DOS command "COPY"; it is:
COPY /b WIN.CNF+VGALOGO.LGO+VGALOGO.RLE NEWWIN.COM
| | | | | |
| | | | | |
| | | | | |
| |
MS-DOS binary copy switch The file set The new file
The file sequence is important, note the plus (+) signs; this
allows MS-DOS to create a single *.COM file from three separate
files.
The start up logo file, is VGALOGO.RLE. You can use any name for
this file as long as it ends in the extension *.RLE and it is a
true *.RLE file. The enclosed file VGALOGO.RLE -- was -- the
Windows 3.1 start up screen but was converted to *.BMP format with
the WINGIF program. It was then popped into Windows 3.1
PaintBrush. The graphic was centered, the background was painted
red, and the file re-saved with WINGIF as a *.RLE file again. So
when you run this batch file successfully, the familiar Windows 3.1
logo will appear but with a RED not a black background.
SPECIAL INFORMATION:
Using any switches after the Windows loading command "WIN" such as:
WIN /b
to make a BOOTLOG.TXT or any other switch, or just typing
WIN :
that's "WIN" with a space ( ) and a colon (:) will prevent ANY
start up screen from showing.
SAMPLE *.RLE LOGO FILES:
There are sample *.RLE files in this file set for you to use when
you are ready to experiment. To use one of these *.RLE graphic
screens just substitute its name for the file called VGALOGO.RLE in
the command at the bottom of this text file. The batch file starts
after the LABEL ":start" everything before that is just plain text.
Remember only edit this batch file with an ASCII text editor such
as "Notepad" in Windows 3.1. Do NOT use the Windows 3.1 programs
"Write" or "Clipboard" to edit this file.
If you don't like the name NEWWIN.COM for your new Windows 3.1
loader, pick another name as Windows 3.1 doesn't mind, BUT please
DON'T USE ** WIN.COM ** !!!
NOTE WELL:
When you make your very own graphic; the file saved as a
*.RLE file should not be more than 50K in size. Since you
will have to use a "paint" program such as Windows 3.1
PaintBrush, the *.BMP file may be 150K but the *.RLE file
should be less than 50K. The settings that work for a color
graphic are:
----------------- 640 x 480 pixels x 16 colors ------------------
ERRORS, HORRORS, ERRORS!:
If something has gone wrong, don't worry this program DOES NOT
MODIFY ANY EXISTING WINDOWS FILES on the hard drive. Your original
WIN.COM is still there and should work just as it has always done.
This batch file looks for the necessary files on the C: drive,
copies them to a floppy disk in the A: Drive, makes NEWWIN.COM as a
file in C:\WINDOWS and the starts windows. All this will work if
the correct files are in the C:\WINDOWS\SYSTEM. If they are not,
the program reports an error and you will have to copy them by hand.
This batch file uses a *** copy *** of WIN.CNF. WIN.CNF is the file
that creates WIN.COM. I suggest you take my advice and leave the
original where it is, run this program from a floppy, and don't
mess with the original file.
MAKING YOUR OWN START UP LOGO:
If after running this batch file you become a convert, then you
will have to go to the great trouble of finding a shareware program
that converts the common and ordinary *.PCX and *.BMP files into
the compressed format (*.RLE) that Microsoft uses to make the start
up logo screen. RLE stands for "Run Length Encoding" and is a
data compression format for graphic files. Amazingly, I know of NO
commercial graphic file converter program that converts *.PCX,
*.GIF, *.BMP, etc. files to the *.RLE format. You must use one of
two shareware programs. They are:
# Program File set Version Author's CompuServe #
_______________________________________________________________
1. Paint Shop Pro PSP.ZIP 1.0 71355,470
2. WINGIF WINGIF.ZIP 1.4 76704,12
Both programs can be found on CompuServe in the Microsoft Windows
New/Advanced Users section(s). Download WINGIF.ZIP as it is the
smaller, simpler, and the cheaper to register of the two programs.
In using WINGIF, save your graphic file to the format "RLE 4." If
you have trouble finding these programs, search the CompuServe File
Finder database using the Author's CompuServe Number.
UNDOCUMENTED SECRET:
Now, we'll skip ahead to a final idea. After you decide that you
like your dandy new start up screen for your home, office, or
network computer(s), then you may want to make sure that this new
start up screen stays if you change your Windows 3.1 SETUP. That
means that once you are SURE that everything works satisfactorily,
then copy your new startup graphic to the C:\WINDOWS\SYSTEM
directory as:
VGALOGO.RLE
That's right REPLACE the original VGALOGO.RLE that is in that
directory. Well, you said you were sure, didn't you? Now, every
time you change your Windows 3.1 SETUP, a new WIN.CNF will be made
and a new WIN.COM will be generated using your new start up screen.
Now THAT'S really snappy!
If this program works for you, let me know, if it doesn't, let me
know.
Yours, for your very own Windows 3.1 start up logo,
John De Palma on CompuServe 76076,571.
-------------------------- END of TEXT -------------------------
:start
a:
c:
cd\windows\system
if not exist win.cnf goto error
if exist win.cnf copy c:\windows\system\win.cnf a:\
if not exist vgalogo.lgo goto error
if exist vgalogo.lgo copy c:\windows\system\vgalogo.lgo a:\
a:
copy /b win.cnf+vgalogo.lgo+vgalogo.rle c:\windows\newwin.com
c:
cd\windows
echo
newwin
goto tatah
:error
echo
echo We are in the wrong directory, sorry, but you will have to do this
echo manually.
goto end
:tatah
a:
echo
echo SUCCESS!!!!
:end